"""
assert使用方法
"""

text = '写课件好累啊！我emo啦！'

# 判断text等于XX
# assert text == '写课件好累啊！我emo啦！'
# 判断text不等于XX
# assert text != '扶我起来！我还能写'
# # 判断text包含XX
# assert 'emo' in text
# # 判断text不包含XX
# assert '扶我起来！我还能写' not in text

def fun(a):
    if a == 10:
        return True
    return False

# # 判断XX为真
assert fun(1)
# # 判断XX不为真
# assert not XX
